package com.ATM42.domain;

import java.text.SimpleDateFormat;
import java.util.Date;

import com.ATM42.utils.TimeUtils;

public class Receipt {

	private String processTime;
	private String name;
	private int amount;
	
	public Receipt(Card card) {
		this.name = card.getAccountName();
		this.amount = card.getMoney();
		this.processTime = getCreateTime();
	}
	
	public String getCreateTime() {
		processTime = TimeUtils.getCreateTime();
		return processTime;
	}
	
	public void setName(String name) {
		this.name = name;
	}
	
	public String getName(String name) {
		return name;
	}
}
